/**
 * 获取一个标签所在的位置信息
 * @param {tag} tag 标签名
 */
export default function(tag) {
  return new Promise((resolve, reject) => {
    const querySelect = wx.createSelectorQuery()
    querySelect.select(tag).boundingClientRect()
    querySelect.exec(resolve)
  })
}